
#ifndef __PT_BTNSETTING_H__
#define __PT_BTNSETTING_H__

#include "sys_port.h"

//*****************************************************
#ifdef __cplusplus
extern "C" 
{
#endif
//*****************************************************

#define  STR_LEN     (128)

typedef struct {
    char tKey[STR_LEN];
    char buttonName[STR_LEN];
    char roomId[STR_LEN];
    char roomName[STR_LEN];
    char tDesc[STR_LEN];

    int  buttonType;
    char buttonTypeName[STR_LEN];
    char actionId[STR_LEN];
    char fastId[STR_LEN];
    char deviceType[STR_LEN];

    char actionName[STR_LEN];
    int  radioButtonState;
    int  voiceButtonStatee;
    char command[STR_LEN];
}pt_btn_info_t;
//*****************************************************

int pt_btn_left_setting(
        char* btn_tKey,
        char* btn_buttonName,
        char* btn_roomId,
        char* btn_roomName,
        char* btn_tDesc,
        int   btn_buttonType,
        char* btn_buttonTypeName,
        char* btn_actionId,
        char* btn_fastId,
        char* btn_deviceType,
        char* btn_actionName,
        int   btn_radioButtonState,
        int   btn_voiceButtonStatee,
        char* btn_command
    );

int pt_btn_middle_setting(
        char* btn_tKey,
        char* btn_buttonName,
        char* btn_roomId,
        char* btn_roomName,
        char* btn_tDesc,
        int   btn_buttonType,
        char* btn_buttonTypeName,
        char* btn_actionId,
        char* btn_fastId,
        char* btn_deviceType,
        char* btn_actionName,
        int   btn_radioButtonState,
        int   btn_voiceButtonStatee,
        char* btn_command
    );
int pt_btn_right_setting(
        char* btn_tKey,
        char* btn_buttonName,
        char* btn_roomId,
        char* btn_roomName,
        char* btn_tDesc,
        int   btn_buttonType,
        char* btn_buttonTypeName,
        char* btn_actionId,
        char* btn_fastId,
        char* btn_deviceType,
        char* btn_actionName,
        int   btn_radioButtonState,
        int   btn_voiceButtonStatee,
        char* btn_command
    );

  int pt_btn_init_para(void);
char* btn_left_get_buttonName(void);
char* btn_middle_get_buttonName(void);
char* btn_right_get_buttonName(void);

int btn_left_is_radio(void);
int btn_middle_is_radio(void);
int btn_right_is_radio(void);

int btn_get_update_flag(void);
int btn_set_update_flag(int flag);

#ifdef __cplusplus
}
#endif
//*****************************************************

#endif
